import request from '@/utils/request'

// 查询PM浓度记录列表
export function listPmlevels(query) {
  return request({
    url: '/airsystem/pmlevels/list',
    method: 'get',
    params: query
  })
}

// 查询PM浓度记录详细
export function getPmlevels(recordId) {
  return request({
    url: '/airsystem/pmlevels/' + recordId,
    method: 'get'
  })
}

// 新增PM浓度记录
export function addPmlevels(data) {
  return request({
    url: '/airsystem/pmlevels',
    method: 'post',
    data: data
  })
}

// 修改PM浓度记录
export function updatePmlevels(data) {
  return request({
    url: '/airsystem/pmlevels',
    method: 'put',
    data: data
  })
}

// 删除PM浓度记录
export function delPmlevels(recordId) {
  return request({
    url: '/airsystem/pmlevels/' + recordId,
    method: 'delete'
  })
}
